package com.easycms.web.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easycms.web.system.domain.SysOperate;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Mapper
public interface SysOperateMapper extends BaseMapper<SysOperate> {

    /**
    *
     * @author yushuo
     * @description //mybatis缁戝畾mapper.xml鏌ヨ鏁版嵁
     * @date 15:42 2021/1/25
     * @param operates
     * @return int
    **/
    public int insertBatch(List<SysOperate> operates);

    /**
    *
     * @author yushuo
     * @description mybatis娉ㄨВ鏂瑰紡鏌ヨ鏁版嵁
     * @date 15:42 2021/1/25
     * @param id
     * @return com.easycms.domain.system.SysOperate
    **/
    @Select("select * from getOperateById where id=#{id}")
    public SysOperate selectByPrimaryKey(int id);

    /**
    *
     * @author yushuo
     * @description 查询角色的按钮权限
     * @date 10:15 2021/2/23
     * @param [roleId]
     * @return java.util.List<com.easycms.web.system.domain.SysOperate>
    **/
    public List<SysOperate> selectOperateRoleTags(Long roleId);
}
